package cn.school.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 会议聊天记录表
 * @TableName meeting_toke
 */
@TableName(value ="meeting_toke")
@Data
public class MeetingToke implements Serializable {
    /**
     * 会议聊天记录id
     */
    @TableId
    private Long meetingTokeId;

    /**
     * 聊天发送人
     */
    private Long meetingPersonId;

    /**
     * 聊天发送时间
     */
    private Date meetingTime;

    /**
     * 聊天发送的消息
     */
    private String meetingTokeInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MeetingToke other = (MeetingToke) that;
        return (this.getMeetingTokeId() == null ? other.getMeetingTokeId() == null : this.getMeetingTokeId().equals(other.getMeetingTokeId()))
            && (this.getMeetingPersonId() == null ? other.getMeetingPersonId() == null : this.getMeetingPersonId().equals(other.getMeetingPersonId()))
            && (this.getMeetingTime() == null ? other.getMeetingTime() == null : this.getMeetingTime().equals(other.getMeetingTime()))
            && (this.getMeetingTokeInfo() == null ? other.getMeetingTokeInfo() == null : this.getMeetingTokeInfo().equals(other.getMeetingTokeInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMeetingTokeId() == null) ? 0 : getMeetingTokeId().hashCode());
        result = prime * result + ((getMeetingPersonId() == null) ? 0 : getMeetingPersonId().hashCode());
        result = prime * result + ((getMeetingTime() == null) ? 0 : getMeetingTime().hashCode());
        result = prime * result + ((getMeetingTokeInfo() == null) ? 0 : getMeetingTokeInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", meetingTokeId=").append(meetingTokeId);
        sb.append(", meetingPersonId=").append(meetingPersonId);
        sb.append(", meetingTime=").append(meetingTime);
        sb.append(", meetingTokeInfo=").append(meetingTokeInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}